package com.xxx.system.controller;

import com.xxx.base.utils.R;
import com.xxx.system.domain.Menu;
import com.xxx.system.service.IMenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author BoWei Wang
 * @date 2025/8/5
 */

@RestController
@RequestMapping("/menu")
@Api(tags = "菜单接口类")
public class MenuController {
    @Autowired
    private IMenuService menuService;


    @GetMapping("/treeType")
    @ApiOperation("查询菜单树")
    public R<List<Menu>> getTypeTree() {

        return R.ok(menuService.getMenuTree());
    }



}
